<?php
/**
 * 
 * @author TCL
 *
 */
interface CF_Session_SaveHandler_Interface
{
	/**
	 * 
	 * @param string $path
	 * @param string $name
	 * @return boolean
	 */
	public function open($path, $name);
	
	/**
	 * @return boolean
	 */
	public function close();
	
	/**
	 * 
	 * @param string $id
	 * @return boolean
	 */
	public function read($id);
	
	/**
	 * 
	 * @param string $id
	 * @param string $data
	 * @return boolean
	 */
	public function write($id, $data);
	
	/**
	 * 
	 * @param string $id
	 * @return boolean
	 */
	public function destroy($id);
	
	/**
	 * 
	 * @param int $maxlifetime
	 * @return boolean
	 */
	public function gc($maxlifetime);
}